package cn.dansj.handler.interfaces;

import cn.dansj.annotation.MarkAsApi;
import cn.dansj.bean.CurrentThreadLocalUserInfo;
import cn.dansj.common.utils.transfer.Verification;
import cn.dansj.handler.InterfaceHandler;

import java.util.Map;

@SuppressWarnings("all")
@MarkAsApi
public class GetSpecialDay extends InterfaceHandler {
    @Override
    public Object execute(Map<String, Object> paramsMap) {
        final String userSequence = CurrentThreadLocalUserInfo.getCurrentThreadLocalUserInfo().getCacheToken().getSequence();
        if (Verification.checkNull(userSequence)) return "";
        return jdbcTemplate.queryForMap("select day from x_calendar_event where user_id = ? and (length(content)=0 or content is null)", userSequence);
    }
}